const babel = require('@babel/core')

const code = `const sayHello = () => 'Hello'`

const optionsObjecrt = {}

const compileResult = babel.transformSync(code, optionsObjecrt)

console.dir(compileResult);